package catherineliu.main.factory.computer;

/**
 * 项目：DesignPatternsDemo
 * 文件描述：测试客户端程序
 * 作者：ljj
 * 创建时间：2020/11/25
 */
public class TestComputerFactory {

    public static void main(String[] args) {

        Computer pc = ComputerFactory.getComputer("pc", "2 GB", "500 GB", "2.4 GHz");
        Computer server = ComputerFactory.getComputer("server", "16 GB", "1 TB", "2.9 GHz");
        System.out.println("Factory PC config: " + pc);
        System.out.println("Factory Server config: " + server);
        System.out.println(Boolean.valueOf("TRUE"));
    }

}
